package io.mvvm.netty.codec.entity;

import java.io.Serializable;

/**
 * @program: Netty
 * @description:
 * @author: 潘
 * @create: 2021-05-16 21:25
 **/
public abstract class Message implements Serializable {

    private int messageType;
    private int sequenceId;

    public abstract int getMessageType();

    public static final int LoginRequestMessage = 0;

    public int getSequenceId() {
        setSequenceId(1);
        return sequenceId;
    }

    public void setSequenceId(int sequenceId) {
        this.sequenceId = sequenceId;
    }

}
